package extend;

public abstract class BufferedWriterFile extends Writer {

    private Writer writer;//抽象类的变量
    
    public BufferedWriterFile(Writer writer){
            this.writer=writer;
    }

    public abstract void buffered();
    public abstract void clean();


    public void writeFile(){
        this.buffered();
            writer.writeFile();
            this.clean();
    }

}
